package com.example.lotterysystem.mapper;

import com.example.lotterysystem.pojo.dataobject.ActivityDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityMapper {

    int insert(ActivityDO activityDO);

    int count();

    List<ActivityDO> selectActivityList(@Param("offset") Integer offset,
                                        @Param("pageSize") Integer pageSize);

    ActivityDO selectById(@Param("id") Long id);

    void updateStatus(@Param("id") Long id,
                      @Param("status") String status);
}
